package com.woniu.map.controller;

import com.woniu.internalcommon.dto.ResponseResult;
import com.woniu.internalcommon.request.POIRequestDTO;
import com.woniu.internalcommon.response.POIResponse;
import com.woniu.map.service.POISearchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/poi")
public class POIController {
    @Autowired
    private POISearchService poiSearchService;
    /**
     * 周边搜索
     * @param poiRequestDTO
     * @return 商家信息
     */
    @PostMapping ("around")
    public ResponseResult<POIResponse> aroundPOISearch(@RequestBody POIRequestDTO poiRequestDTO)
    {
        System.out.println(poiRequestDTO);
        return poiSearchService.aroundPOISearch(poiRequestDTO);
    }
}
